#!/usr/bin/env python
import os

def test(rootdir):
    for i in os.listdir(rootdir):
        path = os.path.join(rootdir,i)
        print path
        if os.path.isdir(path):
            test(path)
test('/data/python')